package com.dhj.yygh.mongo_operation;

import com.dhj.yygh.model.hosp.Schedule;
import org.joda.time.DateTime;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {

    /**
     * @param hoscode 医院代码
     * @param depcode 科室代码
     * @param workDate 排班时间
     * @return 返回排班信息
     */
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(
            String hoscode,
            String depcode,
            Date workDate);
}
